package com.tczs.web.config;

public class CustomerResponseHtml {

    public static byte[] getHtmlData(String errorMessage){
        String str = "<html>\n" +
                "<head>\n" +
                "    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" +
                "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0\">\n"+
                "    <title>翻译软件-轻巧版-天才战士93网</title>\n"+
                "    <link rel=\"icon\" href=\"../html/tczs93.ico\" type=\"image/x-icon\">\n"+
                "    <style>\n" +
                "        body {\n" +
                "            margin: 0;\n" +
                "            padding: 0;\n" +
                "            width: 100%;\n" +
                "            height: 100%;\n" +
                "            color: #B0BEC5;\n" +
                "            display: table;\n" +
                "            font-weight: 100;\n" +
                "            font-family: 'Lato';\n" +
                "        }\n" +
                "\n" +
                "        .container {\n" +
                "            text-align: center;\n" +
                "            display: table-cell;\n" +
                "            vertical-align: middle;\n" +
                "        }\n" +
                "\n" +
                "        .content {\n" +
                "            text-align: center;\n" +
                "            display: inline-block;\n" +
                "        }\n" +
                "\n" +
                "        .title {\n" +
                "            font-size: 42px;\n" +
                "            margin-bottom: 40px;\n" +
                "        }\n" +
                "    </style>\n" +
                "</head>\n" +
                "<body>\n" +
                "<div class=\"container\">\n" +
                "    <div class=\"content\">\n" +
                "        <div class=\"title\">500 "+errorMessage+"！</div>\n" +
                "    </div>\n" +
                "</div>\n" +
                "</body>\n" +
                "</html>";
        return str.getBytes();
    }
}
